home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.1
/
wish.1
< prev
next >
Wrap
Text File
|
1995-07-25
|
8KB
|
198 lines
wwwwiiiisssshhhh((((1111)))) TTTTkkkk ((((3333....3333)))) wwwwiiiisssshhhh((((1111))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
wish - Simple windowing shell
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
wwwwiiiisssshhhh ?_o_p_t_i_o_n_s? ?_a_r_g _a_r_g ...?
OOOOPPPPTTTTIIIIOOOONNNNSSSS
----ddddiiiissssppppllllaaaayyyy _d_i_s_p_l_a_y
Display (and screen) on which to display
window.
----ffffiiiilllleeee _f_i_l_e_N_a_m_e Read commands from _f_i_l_e_N_a_m_e rather than
standard input. The last element in _f_i_l_e_N_a_m_e
will be used as the title for the application
and name of its interpreter for sssseeeennnndddd commands
(unless overridden by the ----nnnnaaaammmmeeee option).
----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m_e_t_r_y
Initial geometry to use for window.
----nnnnaaaammmmeeee _n_a_m_e Use _n_a_m_e as the title to be displayed in the
window, and as the name of the interpreter
for sssseeeennnndddd commands.
----ssssyyyynnnncccc Execute all X server commands synchronously,
so that errors are reported immediately.
This will result in much slower execution,
but it is useful for debugging.
----hhhheeeellllpppp Print a summary of the command-line options
and exit.
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
WWWWiiiisssshhhh is a simple program consisting of the Tcl command
language, the Tk toolkit, and a main program that reads
commands from standard input or from a file. It creates a
main window and then processes Tcl commands. If wwwwiiiisssshhhh is
invoked with no ----ffff option then it reads Tcl commands
interactively from standard input. It will continue
processing commands until all windows have been deleted or
until end-of-file is reached on standard input. If there |
exists a file ....wwwwiiiisssshhhhrrrrcccc in the home directory of the user, |
wwwwiiiisssshhhh evaluates the file as a Tcl script just before reading |
the first command from standard input.
If the ----ffffiiiilllleeee option is provided to Tk, then wwwwiiiisssshhhh reads Tcl
commands from the file named in the ----ffffiiiilllleeee option. These
commands will normally create an interactive interface
Page 1 (printed 7/23/95)
wwwwiiiisssshhhh((((1111)))) TTTTkkkk ((((3333....3333)))) wwwwiiiisssshhhh((((1111))))
consisting of one or more widgets. When the end of the
command file is reached, wwwwiiiisssshhhh will continue to respond to X
events until all windows have been deleted. There is no |
automatic evaluation of ....wwwwiiiisssshhhhrrrrcccc in this case, but the script |
file can always ssssoooouuuurrrrcccceeee it if desired.
VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
WWWWiiiisssshhhh sets the following Tcl variables:
aaaarrrrggggcccc Contains a count of the number of _a_r_g
arguments (0 if none), not including the
options described above.
aaaarrrrggggvvvv Contains a Tcl list whose elements are the
_a_r_g arguments (not including the options
described above), in order, or an empty
string if there are no _a_r_g arguments.
aaaarrrrggggvvvv0000 Contains _f_i_l_e_N_a_m_e if it was specified. |
Otherwise, contains the name by which wwwwiiiisssshhhh |
was invoked. |
ttttccccllll____iiiinnnntttteeeerrrraaaaccccttttiiiivvvveeee ||
Contains 1 if wwwwiiiisssshhhh is reading commands |
interactively (no ----ffffiiiilllleeee option was specified |
and standard input is a terminal-like |
device), 0 otherwise.
SSSSCCCCRRRRIIIIPPPPTTTT FFFFIIIILLLLEEEESSSS
If you create a Tcl script in a file whose first line is
####!!!!////uuuussssrrrr////llllooooccccaaaallll////bbbbiiiinnnn////wwwwiiiisssshhhh ----ffff
then you can invoke the script file directly from your shell
if you mark it as executable. This assumes that wwwwiiiisssshhhh has
been installed in the default location in /usr/local/bin;
if it's installed somewhere else then you'll have to modify
the above line to match.
PPPPRRRROOOOMMMMPPPPTTTTSSSS
When wwwwiiiisssshhhh is invoked interactively it normally prompts for |
each command with ``%%%% ''. You can change the prompt by |
setting the variables ttttccccllll____pppprrrroooommmmpppptttt1111 and ttttccccllll____pppprrrroooommmmpppptttt2222. If |
variable ttttccccllll____pppprrrroooommmmpppptttt1111 exists then it must consist of a Tcl |
script to output a prompt; instead of outputting a prompt |
wwwwiiiisssshhhh will evaluate the script in ttttccccllll____pppprrrroooommmmpppptttt1111. The variable |
ttttccccllll____pppprrrroooommmmpppptttt2222 is used in a similar way when a newline is typed |
but the current command isn't yet complete; if ttttccccllll____pppprrrroooommmmpppptttt2222 |
isn't set then no prompt is output for incomplete commands.
Page 2 (printed 7/23/95)
wwwwiiiisssshhhh((((1111)))) TTTTkkkk ((((3333....3333)))) wwwwiiiisssshhhh((((1111))))
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
shell, toolkit
Page 3 (printed 7/23/95)